package com.zyf.chapter01.principle.SOLID.DIP.IOC;

/**
 * 自动化测试 - 控制反转
 * @author yifeng
 */
public abstract class TestCase {
    public void run() {
        if (doTest()) {
            System.out.println("Test succeed.");
        } else {
            System.out.println("Test failed.");
        }
    }

    public abstract boolean doTest();
}
